package com.pswv2.backstage.skyset.action;

import java.util.Calendar;
import java.util.Date;

import com.pswv2.util.Clock.AlarmClock;

public class SkysetThread extends Thread{
	private long l;
	private String termini;
	private String work;
	public SkysetThread(long l,String termini,String work)
		{
			this.l=l;
			this.termini=termini;
			this.work=work;
		}
	
	@Override
	public void run(){
		Date d=new Date(l);
		Calendar cd = Calendar.getInstance();
        cd.setTime(d);
		int year=cd.get(Calendar.YEAR);
		int month=cd.get(Calendar.MONTH);
		int day=cd.get(Calendar.DATE);
		int hour=cd.get(Calendar.HOUR_OF_DAY);
		int minute=cd.get(Calendar.MINUTE);
		int second=cd.get(Calendar.SECOND);
		/*AlarmClock ac=new AlarmClock(year,month,day,hour,minute,second,termini,work);
		ac.start();
		ac.start();*/
		
	};
	
}
